
<template>
  <div class="option">
    <div class="top">
      <van-nav-bar title="设置" left-text="返回" left-arrow />
    </div>
    <button @click="$router.push('/setpassword')">设置密码</button>
    <button @click="loginOut">退出</button>
  </div>
</template>

<script>
export default {
  name: "",
  components: {},
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {
    loginOut() {
      localStorage.removeItem("msmktoken");
      this.$router.push("/login");
    },
  },
};
</script>
<style scoped lang='scss'>
button {
  width: 80%;
  height: 50px;
  margin: 10px 0;
  text-align: center;
  border: none;
  border-radius: 25px;
  background-color: #39f;
  margin-left: 20px;
}
</style>
